<?php 
$calendarAutoIncreaseNumber = 1;
function generateAutoIncreaseNumber()
{
    global $calendarAutoIncreaseNumber;    
    if(!$calendarAutoIncreaseNumber){
        $calendarAutoIncreaseNumber = 1;
    }
    return $calendarAutoIncreaseNumber++;
}
?>

<div id="container" <?php if($view->settings['number_of_days'] != 10){ ?> style="width: 560px;margin: 0 auto;"<?php } ?>>
        <ul>
            <?php if($view->settings['number_of_days'] == 10){ ?>
                <li><a href="javascript:webjs.showQuestionBox(22);"><span><?php echo generateAutoIncreaseNumber(); ?></span></a></li>
                <li><a href="javascript:webjs.showQuestionBox(23);"><span><?php echo generateAutoIncreaseNumber(); ?></span></a></li>
                <li><a href="javascript:webjs.showQuestionBox(24);"><span><?php echo generateAutoIncreaseNumber(); ?></span></a></li>
            <?php } ?>
                <li><a href="javascript:webjs.showQuestionBox(25);"><span><?php echo generateAutoIncreaseNumber(); ?></span></a></li>
                <li><a href="javascript:webjs.showQuestionBox(26);"><span><?php echo generateAutoIncreaseNumber(); ?></span></a></li>
                <li><a href="javascript:webjs.showQuestionBox(27);"><span><?php echo generateAutoIncreaseNumber(); ?></span></a></li>
                <li><a href="javascript:webjs.showQuestionBox(28);"><span><?php echo generateAutoIncreaseNumber(); ?></span></a></li>
                <li><a href="javascript:webjs.showQuestionBox(29);"><span><?php echo generateAutoIncreaseNumber(); ?></span></a></li>
                <li><a href="javascript:webjs.showQuestionBox(30);"><span><?php echo generateAutoIncreaseNumber(); ?></span></a></li>
                <li><a href="javascript:webjs.showQuestionBox(31);"><span><?php echo generateAutoIncreaseNumber(); ?></span></a></li>			
        </ul>
</div><!-- / #container -->